package com.smart.service;

import com.smart.entity.Work;
import com.smart.mapper.WorkMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public interface WorkService {
    Map<String, Object> WorkAll(Integer currentPage, Integer pageSize);
    Map<String, Object> WorkList(Integer currentPage, Integer pageSize);
    Map<String, Object> WorkPending(Integer currentPage, Integer pageSize);
    Map<String, Object> WorkProcessed(Integer currentPage, Integer pageSize);
    Map<String, Object> WorkClosed(Integer currentPage, Integer pageSize);
    Integer WorkDelete(Integer id);
    Work WorkFind(Integer id);
    Integer WorkEdit(Work work);
    Work WorkChat(Integer id);
//    用户工单
    List<Work> UserWorkList(int tab);
//    用户工单详情
    Work UserWorkDetails(String workId);
//    添加新工单
    Integer UserWorkAdd(Work work);
}
